﻿using FluentNHibernate.Mapping;
using easyccms.BusinessLayer.Entities;

namespace easyccms.Nhibernate.Mappings
{
    /// <summary>
    /// Mapping of enitity User Profile to table in database using nhibernate.
    /// </summary>
    public class UserProfileMap : ClassMap<UserProfile>
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="UserProfileMap"/> class.
        /// </summary>
        public UserProfileMap()
        {
            Table("UserProfile");
            Id(x => x.ProfileId);
            Map(x => x.Name);
            Map(x => x.Surname);
        }
    }
}